Micron Document
██████╗ ███████╗████████╗██╗██████╗ ███████╗██████╗ ██╗ █████╗
██╔══██╗██╔════╝╚══██╔══╝██║██╔══██╗██╔════╝██╔══██╗██║██╔══██╗
██████╔╝█████╗ ██║ ██║██████╔╝█████╗ ██║ ██║██║███████║
██╔══██╗██╔══╝ ██║ ██║██╔═══╝ ██╔══╝ ██║ ██║██║██╔══██║
██║ ██║███████╗ ██║ ██║██║ ███████╗██████╔╝██║██║ ██║
╚═╝ ╚═╝╚══════╝ ╚═╝ ╚═╝╚═╝ ╚══════╝╚═════╝ ╚═╝╚═╝ ╚═╝


🬧 The NomadNet Encyclopedia | Archives | Info
- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b

🔍 Search

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

Inittab
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
top
Il mwbqfile mwbginittab, nei sistemi mwbwGNU/Linux, è un mwcafile di mwcqconfigurazione che permette di configurare il comportamento del processo mwcginit.

Si trova all'interno della cartella mwda/etc (secondo lo standard mwdqFHS) ed è di proprietà dell'utente amministratore (mwdgroot).

Contents


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Descrizione

Il file permette di scegliere cosa far partire in base al mweqrunlevel in cui il sistema si è portato (per saperlo digitare il comando mwegmwewrunlevel) e la sua struttura è composta da campi separati dal delimitatore ":".

Un esempio del file può essere:

id:2:initdefault:
l0:0:wait:/etc/init.d/rc 0
l1:1:wait:/etc/init.d/rc 1
l2:2:wait:/etc/init.d/rc 2
l3:3:wait:/etc/init.d/rc 3
l4:4:wait:/etc/init.d/rc 4
l5:5:wait:/etc/init.d/rc 5
l6:6:wait:/etc/init.d/rc 6
pf::powerwait:/etc/init.d/powerfail start
pn::powerfailnow:/etc/init.d/powerfail now
po::powerokwait:/etc/init.d/powerfail stop
1:2345:respawn:/sbin/getty 38400 tty1
2:23:respawn:/sbin/getty 38400 tty2
3:23:respawn:/sbin/getty 38400 tty3
4:23:respawn:/sbin/getty 38400 tty4
5:23:respawn:/sbin/getty 38400 tty5
6:23:respawn:/sbin/getty -f /etc/issue.welcome2l 38400 tty6

Vediamo che ogni riga è composta dai seguenti campi:

id:runlevel:action:process

• mwggid: è un'etichetta per segnalare il tipo di azione
• mwhamwhqrunlevel: indica quali runlevel sono coinvolti per quella azione
• mwhwaction: indica il tipo di azione da effettuare
• mwiqprocess: indica il processo da eseguire

Nel caso sopra riportato viene indicato:

1. che il runlevel di default è il 2 mediante l'azione mwjqinitdefault
2. che in base al runlevel in cui si vuole andare viene eseguito lo mwjwscript mwka/etc/init.d/rc passandogli il numero di runlevel mediante l'azione mwkqwait per dire di eseguire lo script all'avvio del runlevel e che init aspetta che termini
3. che se ci sono variazioni sulla corrente al sistema (in genere segnali inviati da un mwkwUPS) viene eseguito lo script mwla/etc/init.d/powerfail che si comporta di conseguenza
4. che viene lanciato il processo mwlgmwlwgetty collegato ai terminali (che è possibile vedere premendo mwmaCtrl-Alt-F[1-6]) mediante l'azione mwmqrespawn, cioè viene riavviato ogni volta che termina; nel caso in esame il terminale tty1 si trova nei runlevel 2,3,4,5 gli altri terminali si trovano sempre nei runlevel 2 e 3 (si può vedere che sono attivi mediante il comando mwmgmwmwps aux|grep getty)

Per ulteriori dettagli è possibile consultare la pagina di manuale mwnqmwngman inittab.

mwoaAttenzione: nella distribuzione mwoqUbuntu, a partire dalla versione 6.10 (Edgy Eft) il file inittab non è più presente, sostituito dal sistema mwogupstart.

Voci correlate